import React from 'react'
import ReactDOM from 'react-dom'
import { HashRouter, Switch, Route } from 'react-router-dom'
import Login from './containters/login/login.jsx'
import Register from './containters/register/register.jsx'
import Main from './containters/main/main.jsx'
import { Provider } from 'react-redux'
import store from './redux/store'
import './assets/css/index.less'

ReactDOM.render(
	(
    <Provider store={store}>
		<HashRouter>
			<Switch>
				<Route path="/login" component={Login}></Route>
				<Route path="/register" component={Register}></Route>
				<Route component={Main}></Route>
			</Switch>
		</HashRouter>
    </Provider>
    ),
	document.getElementById('root')
)
